﻿@model IRIS.Models.LinkCategory

@{
    ViewBag.Title = "IRIS Ættleiðingartengd fræðsla : Breyta hlekkjaflokk";
}

<h2>Breyta hlekkjasafni</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@if (!ViewData.ModelState.IsValid)
{
    <div class="error">
        @Html.ValidationSummary(false)
    </div>
}

@using (Html.BeginForm()) {
    
    <fieldset>
        <legend>Flokkur</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            Nafn
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
        </div>

        <div class="editor-label">
            Lýsing
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="Breyta" />
        </p>
    </fieldset>
}

